import { herinRequist } from "../http.js";
// 会议管理
const Meeting = {
	getList(data) {
		return herinRequist({ url: '/app/meeting-task', method: 'GET' ,data ,contentType:'application/json'});
	},
	getDetail(id) {
		return herinRequist({ url: '/app/meeting-detail', method: 'GET' ,data:{ id } });
	},
	postAudit(data) {
		return herinRequist({ url: '/app/meeting-audit', method: 'POST' ,data ,contentType:'application/json'});
	},
	getMettingRoomList() {
		return herinRequist({ url: '/app/meeting-room', method: 'GET' });
	},
	postMetting(obj) {
		return herinRequist({ url: '/app/meeting', method: 'POST', data: JSON.stringify( { obj } ), contentType:'application/json' });
	},
	getDepartment(id,type) {
		return herinRequist({ url: '/app/department', method: 'GET', data: { id, type } });
	},
	getUser(id, level) {
		return herinRequist({ url: '/app/users', method: 'GET', data: { id, level } });
	},
	getUserList(name) {
		return herinRequist({ url: '/app/users-list', method: 'GET', data: { name } });
	},
	getMeetingTime(name, date) {
		return herinRequist({ url: '/app/meeting-time', method: 'GET', data: { name, date } });
	}
}

export default Meeting;
